import Vue from 'vue'
import Vuex from 'vuex'
// import Api from '@/lib/api';
import {article} from './article'

Vue.use(Vuex)

export default new Vuex.Store({

  state: {
    // Api,
    
    userinfo:{}//储存登入后的用户信息
    
  },
  mutations: {
    upuserinfo(state,data){
      state.userinfo=data
    }
  },
  actions: {
  },

  modules: {
    article
  }
})
